]> dgit.raspbian.org Git - gnome-shell.git/commit
magnifier : Fix delayed variables checking
authorJerome Brenier <j.brenier@ik.me>
Thu, 10 Apr 2025 18:04:22 +0000 (20:04 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 11 Apr 2025 10:09:21 +0000 (12:09 +0200)
commit5514502277acf85e3273a77f0b35a66ecf5b71ed
tree2cc42904ea49c65ed26ccdf7cbd1cbe56daa524e
parentfddcfcd6c810beaa557a7dee5da36b1f7f9dacf6
magnifier : Fix delayed variables checking

A type-safe comparision against null can be incorrectly positive with never initialized
variables (undefined).
As spotted in https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3688#note_2407551,
allowing for type coercion avoids this situation.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7854
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3688>
js/ui/magnifier.js